<?php
/**
 * Created by PhpStorm.
 * UsersF: Mloong
 * Date: 2019/2/22
 * Time: 11:52
 */

namespace app\login\controller;


use app\api\service\Token;
use app\login\model\Popularize;
use app\login\service\DelService;
use think\facade\Request;

class Del extends BaseController
{
    public function delOnePopularize()
    {
        $json_data = Request::post('data');
        $scope = Token::getRedisTokenScope();
        $data = json_decode($json_data, true);
        $service = new DelService();
        $result = $service->del($data,$scope);
        return json($result);
    }
}